QuickOPC User's Guide and Reference
UALocalApplicationDiscoveryQuery Constructor(IEnumerable<String>,Boolean)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UALocalApplicationDiscoveryQuery Class > UALocalApplicationDiscoveryQuery Constructor : UALocalApplicationDiscoveryQuery Constructor(IEnumerable<String>,Boolean)
Discovery URI strings.
Determines whether one element will be returned for each discovery URI.
Initializes a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   ByVal discoveryUriStrings As IEnumerable(Of String), _
   ByVal flat As Boolean _
)
'Usage
 
Dim discoveryUriStrings As IEnumerable(Of String)
Dim flat As Boolean
 
Dim instance As New UALocalApplicationDiscoveryQuery(discoveryUriStrings, flat)
public UALocalApplicationDiscoveryQuery( 
   IEnumerable<string> discoveryUriStrings,
   bool flat
)
public:
UALocalApplicationDiscoveryQuery( 
   IEnumerable<String^>^ discoveryUriStrings,
   bool flat
)

Parameters

discoveryUriStrings
Discovery URI strings.
flat
Determines whether one element will be returned for each discovery URI.
Remarks

When the flat parameter is false, the discovery query returns one UADiscoveryElement for each application found, and its DiscoveryUriStrings property contains one or more application discovery URLs.

When the flat parameter is true, the discovery query returns one UADiscoveryElement for each discovery URL of each application found. In this case, the DiscoveryUriStrings property of each returned application element contains precisely one string, and you can therefore use the DiscoveryUriString property instead to obtain the discovery URL.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also